// updates tasks
//

_player = _this;

if (isNil "o_krasnostav") then
{
	o_krasnostav = _player createSimpleTask ["o_krasnostav"];
	o_krasnostav setSimpleTaskDescription ["Clear the village from enemy forces.","Clear Krasnostav","Clear Krasnostav"];
	o_krasnostav setSimpleTaskDestination getMarkerPos "mKrasnostav";
	o_krasnostav setTaskState "Created";
};
if (t_krasnostav) then {
	o_krasnostav setTaskState "Succeeded";
};

if (isNil "o_berezino") then
{
	o_berezino = _player createSimpleTask ["o_berezino"];
	o_berezino setSimpleTaskDescription ["Clear the village from enemy forces.","Clear Berezino","Clear Berezino"];
	o_berezino setSimpleTaskDestination getMarkerPos "mBerezino";
	o_berezino setTaskState "Created";
};
if (t_berezino) then {
	t_berezino setTaskState "Succeeded";
};

if (isNil "o_elektrozavodsk") then
{
	o_elektrozavodsk = _player createSimpleTask ["o_elektrozavodsk"];
	o_elektrozavodsk setSimpleTaskDescription ["Clear the village from enemy forces.","Clear Elektrozavodsk","Clear Elektrozavodsk"];
	o_elektrozavodsk setSimpleTaskDestination getMarkerPos "mElektrozavodsk";
	o_elektrozavodsk setTaskState "Created";
};
if (t_elektrozavodsk) then {
	t_elektrozavodsk setTaskState "Succeeded";
};

if (isNil "o_chernogorsk") then
{
	o_chernogorsk = _player createSimpleTask ["o_chernogorsk"];
	o_chernogorsk setSimpleTaskDescription ["Clear the village from enemy forces.","Clear Chernogorsk","Clear Chernogorsk"];
	o_chernogorsk setSimpleTaskDestination getMarkerPos "mChernogorsk";
	o_chernogorsk setTaskState "Created";
};
if (t_chernogorsk) then {
	t_chernogorsk setTaskState "Succeeded";
};

if (isNil "o_balota") then
{
	o_balota = _player createSimpleTask ["o_balota"];
	o_balota setSimpleTaskDescription ["Clear the village from enemy forces.","Clear Balota","Clear Balota"];
	o_balota setSimpleTaskDestination getMarkerPos "mBalota";
	o_balota setTaskState "Created";
};
if (t_balota) then {
	t_balota setTaskState "Succeeded";
};